package com.harmontronics.hanma.paas.paas.domain.organization.service;

import com.harmontronics.hanma.paas.paas.domain.organization.entity.HmOrg;
import java.util.List;

public interface IHmOrgService {

    HmOrg findById(Long id);

    List<HmOrg> getAll();

    void save(HmOrg hmOrg);

    void update(HmOrg hmOrg);

    void delete(Long id);

    void up(Long id);

    void down(Long id);

    void move(Long id,String move);

    void validateField(Long id, String value, Long parentId);

    List<Long> selectChildrenIdWithId(Long orgId, boolean includeDeleted);

    List<Long> selectChildrenIdWithId(Long id);

    List<Long> selectOrgParentIdWithUserId(Long userId);

    List<Long> userBelongTo(List<Long> orgIds, Long userId);

    HmOrg getRootOrg();
}
